<?php
declare (strict_types = 1);

namespace app\month\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Comment extends Model
{
    /**
     * 模型关联查询用户信息
     */
    public function user(){
        return $this->hasOne(User::class,'id','user_id');
    }
}
